<template>
  <div>
    params: <input v-model="age"><br />
    query: <input v-model="info"><br />
    <button v-on:click="jump">跳转</button><br />
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "main_",
  data: function () {
    return {
      age: 0,
      info: "",
    }
  },
  methods: {
    jump: function () {
      this.$router.push({
        name: "age",
        params: {
          age: this.age,
        },
        query: {
          info: this.info,
        }
      })
    },
  },
}
</script>

<style scoped>

</style>